third-party-exp-api icon

third-party-exp-api

(0 reviews)

Western Union- Get Delivery Services

Description: This API returns product codes and their associated product names available for the selected corridor.

The experience API (third-party-api) will push the requests to third-party-prc api which sends the request to wu-sys-api and responds back to the channel.

Channel can send the following data in the query parameter: language (Optional), senderCountryCurrencyCode (Mandatory), receiverCountryCurrencyCode (Optional), type (Optional)

Mulesoft Request:

Headers:

Mandatory Headers: x-correlation-id, client_id, Authorization, x-channel-id, x-bank-id

Optional Headers: x-sub-channel-id, x-user-id, x-debug-flag, x-customer-id, client_secret

Paramaters:

URI Params: NA

Query Params: language (Optional),
senderCountryCurrencyCode (Mandatory),
receiverCountryCurrencyCode (Optional),
type (Optional)

Content-type: application/json

Mulesoft Response:

Success Response: (200)

{
"status": {
    "success": "true",
    "code": "200",
    "arabicMessage": "تمت العملية بنجاح",
    "englishMessage": "The Operation has been Successfully Completed"
},
"response": {
  "deliveryServices":[
    {
        "destinationCode": "IND",
        "serviceCode": 000",
        "serviceName": MONEY IN MINUTES",
        "route": "WADSIN000",
        "banner: "Payee Information for Money in Minutes",
        "template: "0000",
        "deliveryType: "SVC",
        "description: "MONEY IN MINUTES IS AVAILABLE. MONEY CAN BE PICKED UP AT ANY AGENT LOCATION WITHIN MINUTES."
        "exclFlags": "00"
    },
    {
        "destinationCode": "IND",
        "serviceCode": "500",
        "serviceName": "DIRECT TO BANK",
        "route": "WADSIN001\EBD",
        "banner": "PAYEE INFORMATION FOR DIRECT DEPOSIT SERVICE",
        "template": "4020",
        "deliveryType": D2B",
        "description": "PAYEE INFORMATION FOR DIRECT DEPOSIT SERVICE",
        "exclFlags": "C1"
    }
   ]
 }
}

Sample Error Response:

500 :

{
    "success”:  false,
    "code”:  500,
    "reasonCode”: "Internal Server Error",
    "arabicMessage”: "",
     "englishMessage":"NO MATCHING RECORDS FOUND",
    "backendError": "NO MATCHING RECORDS FOUND",  (if debug flag is on)
    "backendCode": "D0004" (if debug flag is on)
}

Reviews